const webpack = require("webpack")
var path = require("path")
module.exports = {
	entry: {
		index: path.resolve(__dirname, "src/js/index")
	},
	output: {
		path: path.resolve(__dirname, './www/js'),
		filename: "[name].js"
	},
	devtool: "source-map",
	resolve: {
		extensions: [".js"]
	},
	module: {
		rules: [
				{
						test: /\.js$/,
						use: {
								loader: "babel-loader",
								options: {
										presets: ["env"]
								}
						}
				}
		]
	}
}